/* 页面容器 */
.home-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
  padding-bottom: 40rpx;
}

/* 用户信息区域 */
.user-section {
  padding: 30rpx;
  background:#5A7AF4;
  border-radius: 0 0 30rpx 30rpx;
  box-shadow: 0 10rpx 30rpx rgba(90, 122, 244, 0.2);
}

.user-card {
  display: flex;
  align-items: center;
  padding: 30rpx;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20rpx;
  box-shadow: 0 8rpx 25rpx rgba(0, 0, 0, 0.05);
}

.user-avatar {
  flex-shrink: 0;
}

.user-info {
  flex: 1;
  margin-left: 30rpx;
  display: flex;
  flex-direction: column;
}

.user-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15rpx;
}

.user-name {
  font-size: 36rpx;
  font-weight: 600;
  color: #333;
}

.user-actions {
  display: flex;
  align-items: center;
}

.change-org-btn {
  font-size: 22rpx;
  padding: 8rpx 16rpx;
}

.setting-icon {
  margin-left: 20rpx;
}

.user-org {
  font-size: 26rpx;
  color: #666;
  margin-bottom: 10rpx;
}

.login-time {
  font-size: 24rpx;
  color: #999;
}

/* 节假日区域 */
.holiday-section {
  margin: 30rpx;
  background: #fff;
  border-radius: 20rpx;
  padding: 30rpx;
  box-shadow: 0 5rpx 20rpx rgba(0, 0, 0, 0.03);
}

.section-header {
  margin-bottom: 25rpx;
}

.section-title {
  font-size: 32rpx;
  font-weight: 600;
  color: #333;
  position: relative;
  padding-left: 20rpx;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8rpx;
  height: 32rpx;
  background: #5A7AF4;
  border-radius: 4rpx;
}

.holiday-scroll {
  width: 100%;
}

.holiday-list {
  display: flex;
  flex-wrap: nowrap;
}

.holiday-item {
  flex: 0 0 auto;
  width: 280rpx;
  margin-right: 20rpx;
  padding: 25rpx;
  background: #F8FAFF;
  border: 2rpx solid #F0F4FF;
  border-radius: 16rpx;
  transition: all 0.3s ease;
}

.holiday-item.selected {
  background: #E6F0FF;
  border-color: #5A7AF4;
  transform: translateY(-5rpx);
  box-shadow: 0 10rpx 20rpx rgba(90, 122, 244, 0.15);
}

.holiday-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.holiday-info {
  display: flex;
  flex-direction: column;
}

.holiday-name {
  font-size: 28rpx;
  font-weight: 500;
  color: #333;
  margin-bottom: 8rpx;
}

.holiday-date {
  font-size: 22rpx;
  color: #999;
}

.holiday-countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-today, .countdown-tomorrow {
  font-size: 26rpx;
  font-weight: 600;
  color: #5A7AF4;
}

.countdown-days {
  display: flex;
  align-items: baseline;
}

.days-number {
  font-size: 36rpx;
  font-weight: 700;
  color: #5A7AF4;
}

.days-text {
  font-size: 22rpx;
  color: #999;
  margin-left: 5rpx;
}

/* 功能模块区域 */
.function-section {
  margin: 0 30rpx;
  background: #fff;
  border-radius: 20rpx;
  padding: 30rpx;
  box-shadow: 0 5rpx 20rpx rgba(0, 0, 0, 0.03);
  margin-top: 50rpx;
}

.function-grid {
  display: flex;
  flex-direction: column;
}

.function-card {
  display: flex;
  align-items: center;
  padding: 30rpx 0;
  border-bottom: 1rpx solid #F5F5F5;
  transition: all 0.2s ease;
}

.function-card:active {
  background: #F8FAFF;
  transform: scale(0.98);
}

.function-card:last-child {
  border-bottom: none;
}

.function-icon {
  width: 80rpx;
  height: 80rpx;
  border-radius: 16rpx;
  background: #F0F4FF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 25rpx;
  flex-shrink: 0;
}

.icon-img {
  width: 80rpx;
  height: 80rpx;
}

.function-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.function-name {
  font-size: 30rpx;
  font-weight: 500;
  color: #333;
  margin-bottom: 8rpx;
}

.function-desc {
  font-size: 24rpx;
  color: #999;
}

.function-arrow {
  display: flex;
  align-items: center;
}

/* 加载状态 */
.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80vh;
}

.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loading-text {
  margin-top: 20rpx;
  font-size: 26rpx;
  color: #999;
}

/* 隐藏滚动条 */
::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  color: transparent;
}